cmake_minimum_required(VERSION 3.16)
project("tflitebuilder demo")

include_directories(
	"../dependencies/opencl_headers/",
	"../dependencies/fp16_headers/include"
)

set(TENSORFLOW_SOURCE_DIR "" CACHE PATH
  "Directory that contains the TensorFlow project"
)
if(NOT TENSORFLOW_SOURCE_DIR)
  get_filename_component(TENSORFLOW_SOURCE_DIR
    "${CMAKE_CURRENT_LIST_DIR}/../../"
    ABSOLUTE
  )
endif()

message(INFO " TENSORFLOW_SOURCE_DIR: ${TENSORFLOW_SOURCE_DIR}")
add_subdirectory(
  "${TENSORFLOW_SOURCE_DIR}/tensorflow/lite"
  "${CMAKE_CURRENT_BINARY_DIR}/tensorflow-lite"
  EXCLUDE_FROM_ALL
)

add_executable(demo
 demo.cc
)

target_link_libraries(demo
  tensorflow-lite
)

install(
	TARGETS demo
)